<template>
	<div class="game-other">
		<header-top :option="headerOption"></header-top>
		<div v-if='this.$route.query.gameName.includes("股林大会")'>
	      <gulin-base-info :pageStatus='page'></gulin-base-info>
		  <gulin-current-position></gulin-current-position>
		  <gulin-otherdetail-footer></gulin-otherdetail-footer>
		</div>
		<div v-else>
		  <base-info :pageStatus='page'></base-info>
		  <current-position></current-position>
		  <otherdetail-footer></otherdetail-footer>
		</div>
		


	</div>
</template>

<script>
	import HeaderTop from 'components/HeaderTop'
	import BaseInfo from 'components/game/selfdetail/BaseInfo'
	import CurrentPosition from 'components/game/otherdetail/CurrentPosition'
	import OtherDetailFooter from 'components/game/otherdetail/OtherDetailFooter'
	import gulinBaseInfo from 'components/game/selfdetail/gulinBaseInfo'
	import gulinCurrentPosition from 'components/game/otherdetail/gulinCurrentPosition'
	import gulinOtherDetailFooter from 'components/game/otherdetail/gulinOtherDetailFooter'
	import Constant from 'common/constant'
	import { buryPoint } from 'common/decorator'
	import LocalDAO from 'common/localDAO'

	/**
       * 参数：
       * userCode  他人的usercode  必传
       * gameId  比赛id  必传
       * gameName  比赛名称   必传
       *
       * 调用示例：
       * this.$router.push({path: '/game/gameotherdetail', query: {userCode : this.userCode , gameId : this.gameId ,gameName : this.gameName ,teamName : this.teamName}})
    */
	export default {
    	data () {
      		return {
        		headerOption: {
          			title: this.$route.query.gameName,
          			operations: [Constant.operation.REFRESH],
          			page:Constant.page.SHARE_SELF_DETAILS
        		},
        		page: 'other',
        		gameId: this.$route.query.gameId,
        		usercode: LocalDAO.getUserCode()
      		}
    	},
    	components: {
    		'header-top': HeaderTop,
      		'base-info': BaseInfo,
      		'current-position' : CurrentPosition,
      		'otherdetail-footer' : OtherDetailFooter,
      		'gulin-base-info': gulinBaseInfo,
      		'gulin-current-position': gulinCurrentPosition,
      		'gulin-otherdetail-footer': gulinOtherDetailFooter
    	},
    	created: function () {
    	  this.init()
    	},
    	methods: {
    	  @buryPoint('13007', function() { return { usercode: this.usercode, gameid: this.gameId }})
          init () {
           	console.log('他人的持仓页面初始化')
          }
        }
  	}
</script>

<style>
	.game-other{
		background-color: #fff;
	}
</style>
